| Previous | Chapter contents | Chapter top | Section top | Next |
You can use the QTVRInstallInterceptProc function to install or remove an intercept procedure for a QuickTime VR Manager function.
OSErr QTVRInstallInterceptProc (
QTVRInstanceqtvr,
QTVRProcSelectorselector,
QTVRInterceptUPPinterceptProc,
SInt32refCon,
UInt32 flags);
The QTVRInstallInterceptProc function installs the procedure specified by the interceptProc parameter as an intercept procedure for the QuickTime VR function specified by the selector parameter for the QuickTime VR movie specified by the qtvr parameter. Your intercept procedure is called whenever QuickTime VR is about to execute the function it's intercepting. Your procedure can simply replace the intercepted function, or it can call through to the intercepted function (either by calling the QTVRCallInterceptedProc function or by returning the value false in its cancel parameter).
Listing 2-8 illustrates the use of QTVRInstallInterceptProc .
| Previous | Chapter contents | Chapter top | Section top | Next |